﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace DICOM_PROJECT.Models
{
    public class Indication
    {
        [Display(Name = "Indication ID")]
        public int IndicationID { get; set; }

        [Display(Name = "Patient ID")]
        [ForeignKey("UserProfile")]
        public int UserProfileID { get; set; }

        [Display(Name = "Doctor ID")]
        [ForeignKey("Doctor")]
        public int DoctorID { get; set; }

        [Display(Name = "Create Date")]
        [DataType(DataType.DateTime)]
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime CreateDate { get; set; }

        [Display(Name = "Radiologist ID")]
        [ForeignKey("Radiologist")]
        public int? RadiologistID { get; set; }

        [Display(Name = "Update Date")]
        public DateTime? UpdateDate { get; set; }

        [Display(Name = "Indication Information")]
        public string IndicationInformation { get; set; }

        [Display(Name = "Indication Result")]
        public string IndicationResult { get; set; }

        [Display(Name = "ImageVisit ID")]
        public string ImageVisitID { get; set; }

        [Display(Name = "Image ID")]
        public int? ImageID { get; set; }

        public virtual UserProfile UserProfile { get; set; }

        public virtual Doctor Doctor { get; set; }

        public virtual Radiologist Radiologist { get; set; }
    }
}